<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>读者借阅列表</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
	<thead>
	<tr>
		<th>资料名称</th>
		<th>借出日期</th>
		<th>归还日期</th>
		<th>续借次数</th>
		<th>操作用户</th>
		<th>操作</th>
	</thead>
	<tbody>
	<c:forEach items="${page.list}" var="borrowlist">
		<tr>
			<td>${borrowlist.bkBookinfo.bookname}</td>
			<td><fmt:formatDate value="${borrowlist.borDate}" pattern="yyyy-MM-dd"/></td>
			<td><fmt:formatDate value="${borrowlist.rtnDate}" pattern="yyyy-MM-dd"/></td>
			<td>${borrowlist.contCnt}</td>
			<td>${borrowlist.userName}</td>
			<td>
				<c:choose>
					<c:when test="${borrowlist.status== '1'}">
						<a href="${ctx}/book/borrowed/rtnbook?id=${borrowlist.zlId}">归还</a>
						<a href="${ctx}/book/borrowed/brcontinue?id=${borrowlist.zlId}">续借</a>
					</c:when>
					<c:otherwise>
						--
					</c:otherwise>
				</c:choose>
			</td>
		</tr>
	</c:forEach>
	</tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>